from django.db import models
import django.utils.timezone as timezone
# Create your models here.

class user(models.Model):
    id=models.AutoField('IPid',primary_key=True)
    user=models.CharField('IP',max_length=64,)
    passwd=models.CharField('密码',max_length=64,)
    sex=models.BigIntegerField('男女标识')
    sex_name=models.CharField("名称",max_length=64,)
    mail=models.CharField("邮箱",max_length=64,)
    createtime=models.DateTimeField('创建时间',default=timezone.now)
class allow_ip(models.Model):
    id=models.AutoField('IPid',primary_key=True)
    ip=models.CharField('IP',max_length=64,)
    user=models.CharField('密码',max_length=64,)